package com.zzl.finance.data.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzl.finance.data.dao.BankInformationEntityMapper;
import com.zzl.finance.data.entity.BankInformationEntity;
import com.zzl.finance.data.service.BankInformationService;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("bankInformationService")
public class BankInformationServiceImpl extends ServiceImpl<BankInformationEntityMapper, BankInformationEntity> implements BankInformationService {

    @Override
    public List<BankInformationEntity> listByBankName(String bankName) {
        QueryWrapper<BankInformationEntity> queryWrapper=new QueryWrapper<>();
        queryWrapper.lambda().like(BankInformationEntity::getBankName,bankName);
        return list(queryWrapper);
    }
}
